package oop.ex2.enums;

import java.util.regex.Pattern;

public enum IfWhileEnum {

    IF( "^\\s*(if)\\s*\\((.*)\\)\\s*\\{\\s*$"),
    WHILE(  "^\\s*(while)\\s*\\((.*)\\)\\s*\\{\\s*$");
    
    private Pattern enumPattern;

    private IfWhileEnum(String regex) {
        enumPattern = Pattern.compile(regex);
    }

    public Pattern getEnumPattern() {
        return enumPattern;
    }
}
